package com.ljh.onlinetest.service;

import com.github.pagehelper.PageInfo;
import com.ljh.onlinetest.domain.TaskExam;
import com.ljh.onlinetest.domain.User;
import com.ljh.onlinetest.viewmodel.admin.task.TaskPageRequestVM;
import com.ljh.onlinetest.viewmodel.admin.task.TaskRequestVM;

import java.util.List;

/**
 * @author 余一
 * @date 2022/2/15  22:26
 */
public interface TaskExamService extends BaseService<TaskExam> {

    /**
     * 任务分页
     * @param requestVM
     * @return
     */
    PageInfo<TaskExam> page(TaskPageRequestVM requestVM);

    TaskRequestVM taskExamToVM(Integer id);

    void edit(TaskRequestVM model, User currentUser);

    List<TaskExam> getByGradeLevel(Integer userLevel);
}
